package com.file.system.mapper.system;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.file.system.entity.system.WebFilterReleasePath;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 放行请求 Mapper 接口
* @author jch
* @since 2023-07-17
*/
@Mapper
public interface WebFilterReleasePathMapper{

    //添加放行请求
    int save(WebFilterReleasePath webFilterReleasePath);

    //编辑放行请求
    int update(@Param("ew") UpdateWrapper<WebFilterReleasePath> query);

    //编辑放行请求
    int updateById(WebFilterReleasePath webFilterReleasePath);

    //添加放行请求(批量)
    int saveBatch(@Param("list") List<WebFilterReleasePath> webFilterReleasePathList);

    //通过id删除放行请求
    int removeById(WebFilterReleasePath webFilterReleasePath);

    //通过id查询放行请求
    WebFilterReleasePath selectById(@Param("id") Long id);

    //查询放行请求
    List<WebFilterReleasePath> select(@Param("ew") QueryWrapper<WebFilterReleasePath> query);

    //查询放行请求分页
    List<WebFilterReleasePath> select(Page<WebFilterReleasePath> page, @Param("ew") QueryWrapper<WebFilterReleasePath> query);

    //查询放行请求数量
    int selectCount(@Param("ew") QueryWrapper<WebFilterReleasePath> query);
}
